﻿package cn.antscript.airCMS.unitTest 
{
	import cn.antscript.airCMS.data.XMLData;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	
	/**
	 * ...
	 * @author antscript
	 */
	public class XMLTest extends Sprite
	{
		
		public function XMLTest() 
		{
			var data:XMLData = XMLData.getInstance();
			data.loadXML();
			data.addEventListener(Event.COMPLETE, onCom);
			data.addEventListener(IOErrorEvent.IO_ERROR, onErr);
			
		}
		
		private function onErr(e:IOErrorEvent):void 
		{
			trace("err")
		}
		
		private function onCom(e:Event):void 
		{
			trace("com"); 
		}
		
		
	}

}